package com.killer.sqlSession;

import java.sql.SQLException;
import java.util.List;

public interface SqlSession {

    public <T> List<T> selectList(String statementId, Object... params) throws ClassNotFoundException, SQLException, InstantiationException, IllegalAccessException, NoSuchFieldException;

    public <T> T selectOne(String statementId, Object... params) throws ClassNotFoundException, SQLException, NoSuchFieldException, InstantiationException, IllegalAccessException;

    public int update(String statementId, Object... params) throws ClassNotFoundException, SQLException, IllegalAccessException, NoSuchFieldException;

    public <T> T getMapper(Class<?> mapperClass);
}
